#ifndef PHOTO_H
#define PHOTO_H
#include "swagme.h"
#include "SDL_rotozoom.h"
#define PHOTO_SIZE_X (108)
#define PHOTO_SIZE_Y (116)
#define PHOTO_BORDER_SIZE_X (108)
#define PHOTO_BORDER_SIZE_Y (116)
#define PHOTO_BORDER_TOP_LEFT_X ((PHOTO_BORDER_SIZE_X - PHOTO_SIZE_X) / 2)
#define PHOTO_BORDER_TOP_LEFT_Y (0)

#define PHOTO_DISPLAY_AREA_X (PHOTO_BORDER_SIZE_X / 2)
#define PHOTO_DISPLAY_AREA_Y (PHOTO_BORDER_SIZE_Y / 2)

#define PHOTO_DELAY_MS 600
#define PHOTO_AFTERGLOW_DELAY_MS 2000

/**
	@author Rob and Jeff <rob4@copper>
*/
class Photo{
public:
    Photo();
    ~Photo();

    int Shoot(SDL_Surface *src, int x, int y);
    int Draw(SDL_Surface *dst, int x, int y, bool big);

    static void SetBorder(string imageFilename);
    static void ClearBorder();
  private:
    SDL_Surface* mpPhotoSurface;
    static SDL_Surface* mpPhotoBorderSurface;
    static SDL_Surface* mpLastPhotoBorderSurface; // the latest photo gets special treatment
};

#endif
